5.2 Configuration of motors
The Kikobot C1 is delivered fully assembled and pre-calibrated, ensuring that you can get started with your robotics project right away. However, if you ever need to recalibrate the robot to fine-tune its performance or adjust it for specific tasks, you can easily do so by following these steps. This guide will walk you through the process of configuring the motors, assigning IDs, and ensuring the correct setup for both the leader arm and follower arm.
Let's dive into the steps, designed to make motor calibration and configuration smooth and efficient. If you're ready to explore, follow the detailed instructions below!
Identifying the USB Ports for the Motors
Before configuring the motors, the correct USB ports for each motor bus must be identified. This step is essential for making sure each motor is connected to the right bus adapter.
i. Designating Motors and Bus Servo Adapters
The KikoBot C1 uses two bus servo adapters:
- One for the leader arm (7 motors)
- Another for the follower arm (7 motors)
ii. Run the Port Identification Script
To find the USB ports for each bus servo adapter, run the script that detects all connected motors:
python lerobot/scripts/find_motors_bus_port.py
This script will search for available motor ports and display them in the terminal.
iii. Example Output
After running the script, you will see an output that looks like this:
Finding all available ports for the MotorBus.
['/dev/tty.usbmodem123456', '/dev/tty.usbmodem654321']
Remove the USB cable from your Driver and press Enter when done.
iv. Update config file
Now that you have the ports, modify the port sections in configs.py
.
Located at /lerobot/common/robot_devices/robots/configs.py
Troubleshooting Tips
i. USB Port Access Issues (Linux)
If you're using Linux and encounter problems accessing the USB ports, use the following commands to change permissions:
sudo chmod 666 /dev/ttyACM0
sudo chmod 666 /dev/ttyACM1
This ensures the system has the necessary permissions to interact with the motors.
ii. Misaligned Arms or Incorrect Motor Positioning
In case the arms do not align correctly after assembly, you can always adjust the homing offset to fine-tune the motor positions without reassembling the entire system.
Now that you've calibrated the KikoBot C1, you're ready to take full control of your robot! Whether you're using it for testing, development, or custom tasks, these steps provide flexibility and precision for an optimal robotic experience. Explore, experiment, and enjoy the endless possibilities of robotics with KikoBot C1!